* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

:root {
  --primary-color: #f7dc6f;
  --color-primary: #191d2b;
  --color-secondary: #ee1c1c;
  --color-white: #ffffff;
  --color-black: #000;
  --color-grey0: #f8f8f8;
  --color-grey-1: #dbe1e8;
  --color-grey-2: #b2becd;
  --color-grey-3: #6c7983;
  --color-grey-4: #454e56;
  --color-grey-5: #2a2e35;
  --color-grey-6: #12181b;
  --br-sm-2: 14px;
  --box-shadow-1: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.light-mode {
  --color-primary: #ffffff;
  --color-secondary: #f74141;
  --color-white: #454e56;
  --color-black: #000;
  --color-grey0: #f8f8f8;
  --color-grey-1: #6c7983;
  --color-grey-2: #6c7983;
  --color-grey-3: #6c7983;
  --color-grey-4: #454e56;
  --color-grey-5: #f8f8f8;
  --color-grey-6: #12181b;
}

body {
  background-color: var(--color-primary);
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  color: var(--color-white);
  scroll-behavior: smooth;
  transition: all 2s ease-in;
}

a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}

.main-title {
  text-align: center;
  margin-top: 2rem;
}
.main-title h2 {
  position: relative;
  text-transform: uppercase;
  font-size: 4rem;
  font-weight: 700;
}
.main-title h2 span {
  color: var(--color-secondary);
}

.main-title h2 .bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--color-grey-5);
  transition: all 0.4s ease-in-out;
  z-index: -1;
  transform: translate(-50%, calc(-50% + 1rem));
  font-weight: 800;
  font-size: 5.2rem;
}
.blogs {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 20px;
  margin-top: 4rem;
  padding: 25px;
}

.blogs .blog {
  position: relative;
  background-color: var(--color-grey-5);
  border-radius: 5px;
  box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease-in-out;
  padding: 35px;
  margin-bottom: 20px;
}
.blogs .blog:hover {
  box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
  transition: all 0.5s ease-in-out;
}
.blogs .blog:hover img {
  filter: grayscale(0);
  transform: scale(1.1);
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
}
.blogs .blog img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  filter: grayscale(100%);
  transition: all 0.4s ease-in-out;
}
.blogs .blog .blog-text {
  margin-top: -7px;
  padding: 1.1rem;
  border-top: 8px solid var(--color-secondary);
}
.blogs .blog .blog-text h4 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}
.blogs .blog .blog-text h4:hover {
  color: var(--color-secondary);
}
.blogs .blog .blog-text p {
  color: var(--color-grey-2);
  line-height: 2rem;
  padding-bottom: 1rem;
}

/* Large screens (Desktops) */
@media only screen and (min-width: 1400px) {
  .main-title h2 {
    font-size: 5rem;
  }
  .main-title h2 .bg-text {
    font-size: 6.5rem;
    display: flex;
    flex-direction: column;
  }
  .blogs {
    grid-template-columns: repeat(3, 1fr);
  }
  .blogs .blog {
    padding: 40px;
  }
  .blogs .blog img {
    height: 350px;
  }
}

/* Medium screens (Laptops) */
@media only screen and (min-width: 992px) and (max-width: 1340px) {
  .main-title h2 {
    font-size: 4.5rem;
  }
  .main-title h2 .bg-text {
    font-size: 6rem;
  }
  .blogs {
    grid-template-columns: repeat(2, 1fr);
  }
  .blogs .blog {
    padding: 35px;
  }
  .blogs .blog img {
    height: 300px;
  }
}

/* Small screens (Tablets) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .main-title h2 {
    font-size: 4rem;
  }
  .main-title h2 .bg-text {
    font-size: 5.2rem;
  }
  .blogs {
    grid-template-columns: repeat(1, 1fr);
  }
  .blogs .blog {
    padding: 30px;
  }
  .blogs .blog img {
    height: 250px;
  }
}

/* Extra small screens (Mobiles) */
@media only screen and (max-width: 767px) {
  .main-title h2 {
    font-size: 3.5rem;
  }
  .main-title h2 .bg-text {
    font-size: 5rem;
  }
  .blogs {
    grid-template-columns: repeat(1, 1fr);
  }
  .blogs .blog {
    padding: 25px;
  }
  .blogs .blog img {
    height: 200px;
  }
}
/* .read {
  color: var(--primary-color);
  transition: background-color 0.2s ease-in-out;
}

.read:hover {
  color: var(var(--color-secondary));
}

.read:active {
  color: var(--color-grey-2);
} */
